package it.allerj.common.persistence;

import org.hibernate.Session;
import org.hibernate.Transaction;


public class HibernateConfigHolder {
    private Session session;
    private Transaction transaction;
    public int openedRequest = 0;

    public void setSession(Session session) {
        this.session = session;
    }

    public Session getSession() {
        return session;
    }

    public void setTransaction(Transaction transaction) {
        this.transaction = transaction;
    }

    public Transaction getTransaction() {
        return transaction;
    }
}
